package pantallas;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTextPane;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ReportePlatoMasVendidoView extends javax.swing.JFrame {
	private JLabel lblCantidadPlatos;
	private JScrollPane jScrollPane1;
	private JTextPane txtAreaTexto;
	private JButton cmdProcesar;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				ReportePlatoMasVendidoView inst = new ReportePlatoMasVendidoView();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public ReportePlatoMasVendidoView() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				lblCantidadPlatos = new JLabel();
				getContentPane().add(lblCantidadPlatos);
				lblCantidadPlatos.setText("Cantidad de Plato Mas Vendido");
				lblCantidadPlatos.setBounds(6, 9, 221, 14);
			}
			{
				cmdProcesar = new JButton();
				getContentPane().add(cmdProcesar);
				cmdProcesar.setText("Procesar");
				cmdProcesar.setBounds(37, 39, 215, 21);
				cmdProcesar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						txtAreaTexto.setText("Plato Mas Vendido: Milanesa con papas fritas \nCantidad: 5");
						
					}
				});
				
			}
			{
				jScrollPane1 = new JScrollPane();
				getContentPane().add(jScrollPane1);
				jScrollPane1.setBounds(6, 83, 284, 183);
				{
					txtAreaTexto = new JTextPane();
					jScrollPane1.setViewportView(txtAreaTexto);
					txtAreaTexto.setPreferredSize(new java.awt.Dimension(281, 194));
				}
			}
			pack();
			this.setSize(305, 300);
			this.setTitle("Reporte Platos Mas Vendidos");
			//MEDIDAS Y CENTRALIZACION DE LA PANTALLA.
	        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
	        int w = this.getSize().width;
	        int h = this.getSize().height;
	        int x = (dim.width-w)/2;
	        int y = (dim.height-h)/2;
	        this.setLocation(x, y);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
